<?php if (!fieldsetVacio($block, "V")): ?>
    <fieldset id="fieldset[<?= $order ?>]">
        <div class="titulo">
            <div><?= $block['title'] ?></div>
        </div>

        <?php
        foreach ($block['fields'] as $col) {
            if (hasAction($col, "V")) {
                $value = "";
                if (strpos($col["name"], ".") !== false) {
                    list($tabla, $campo) = explode(".", $col["name"]);
                    if (isset($row[$tabla][$campo])) {
                        $value = $row[$tabla][$campo];
                    }
                } else {
                    if (isset($row[$model][$col["name"]])) {
                        $value = $row[$model][$col["name"]];
                    }
                }
                $col['name'] = $col['name'] . '_' . $row['Ruta']['id'];
                $settings = array("data" => $col, "value" => $value, "html" => true);
                echo $this->Presentation->getContent("renderReadOnly", $settings);
            }
        }
        ?>

    </fieldset>
<?php endif; ?>